package com.ys.entity.hr;

import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TWL_StockTransferDetail", catalog="Id")
public class TwlStockTransferDetail extends BaseEntity<TwlStockTransferDetail> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="BidStockTransfer", nameJava="bidStockTransfer", typeDataBase="varchar")
	private String bidStockTransfer;
	@YsField(nameDataBase="StockId", nameJava="stockId", typeDataBase="bigint")
	private Long stockId;
	@YsField(nameDataBase="Num", nameJava="num", typeDataBase="int")
	private Integer num;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TwlStockTransferDetail setId(Long id) {
		this.id = id;
		return this;
	}
	public String getBidStockTransfer() {
		return bidStockTransfer;
	}
	public TwlStockTransferDetail setBidStockTransfer(String bidStockTransfer) {
		this.bidStockTransfer = bidStockTransfer;
		return this;
	}
	public Long getStockId() {
		return stockId;
	}
	public TwlStockTransferDetail setStockId(Long stockId) {
		this.stockId = stockId;
		return this;
	}
	public Integer getNum() {
		return num;
	}
	public TwlStockTransferDetail setNum(Integer num) {
		this.num = num;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TwlStockTransferDetail setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TwlStockTransferDetail setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TwlStockTransferDetail setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TwlStockTransferDetail twlStockTransferDetail(
		String bidStockTransfer,
		Long stockId,
		Integer num,
		Integer status
			) {
		TwlStockTransferDetail entity = new TwlStockTransferDetail();
		entity.setBidStockTransfer(bidStockTransfer);
		entity.setStockId(stockId);
		entity.setNum(num);
		entity.setStatus(status);
		return entity;
	}
}